{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('list') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ path("choice_new") }}" data-route="choice_new">{{ dry_translation('new') }}</a>
    </div>
{% endblock %}
{% block body %}
    <table class="table table-striped">
        <thead>
            <tr>
                <th>{{ dry_translation('Choice.id') }}</th>
                <th>{{ dry_translation('Choice.dryParent') }}</th>
                <th>{{ dry_translation('Choice.dryName') }}</th>
                <th>{{ dry_translation('Choice.dryKey') }}</th>
                <th>{{ dry_translation('Choice.dryValue') }}</th>
                <th>{{ dry_translation('Choice.drySort') }}</th>
                <th>{{ dry_translation('Choice.dryAddtime') }}</th>
                <th>{{ dry_translation('Choice.dryStatus') }}</th>
                <th>{{ dry_translation('Choice.dryNote') }}</th>
                <th>{{ dry_translation('action') }}</th>
            </tr>
        </thead>
        <tbody>
            {% for choice in choices %}
            <tr>
                <td>{{ choice.id }}</td>
                <td>{{ choice.dryParent }}</td>
                <td>{{ choice.dryName }}</td>
                <td>{{ choice.dryKey }}</td>
                <td>{{ call_method('detailShow', choice.dryValue)|raw }}</td>
                <td>{{ choice.drySort }}</td>
                <td>{{ choice.dryAddtimeString }}</td>
                <td>{{ call_method('statusShow', dryStatusArray, choice.dryStatus)|raw }}</td>
                <td>{{ choice.dryNote }}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-primary" href="{{ dry_path('choice_show', choice.id) }}" data-route="choice_show">{{ dry_translation('show') }}</a>
                        <a class="btn btn-primary" href="{{ dry_path('choice_edit', choice.id) }}" data-route="choice_edit">{{ dry_translation('edit') }}</a>
                    </div>
                </td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}
